.page-dianwu-cashier {
  $header-height: 120px !default;
  $camera-height: 280px !default;
  $footer-height: 120px !default;
  $tabbar-height: 120px !default;
  $tabbar-ipx-height: 140px !default;
  // padding-top: 170px;
  .item-list-scroll {
    padding: 24px 0;
    @include page-scroll($header-height + $camera-height + 168px, $footer-height + $page-footer-height + 66px);
  }
  &.ipx {
    .item-list-scroll {
      @include page-scroll($header-height + $camera-height + 168px, $footer-height + $page-ipx-footer-height + 66px);
    }
    // .sp-page-body {
    //   height: calc(100vh - 140px);
    // }
  }
  // .sp-page-body {
  //   position: relative;
  //   height: calc(100vh - 120px);
  // }
  .block-tools {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 20px;
    height: $header-height;
    .sp-search-input {
      // width: 290px;
      flex: 1;
      margin-right: 20px;
      height: 90px;
    }
    .g-button {
      flex: 1;
      margin-left: 10px;
      .iconfont {
        font-size: 32px;
      }
      &__first {
        height: 70px;
        line-height: 70px;
        padding-right: 13%;
      }
      &__second {
        height: 70px;
        line-height: 70px;
      }
    }
    .btn-adduser {
      width: 280px;
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1PX solid var(--color-dianwu-primary);
      color: var(--color-dianwu-primary);
      border-radius: 30px;
      background: #e3ebfc;
      .icon-xinzenghuiyuan-01 {
        font-size: 40px;
        margin-right: 12px;
      }
    }
  }
  .scan-code-wrap {
    position: relative;
  }
  .scan-code-camera, .camera-placeholder {
    height: $camera-height;
  }
  .scan-code-close {
    padding: 0 20px;
    position: absolute;
    top: 0;
    right: 0;
    height: 60px;
    line-height: 60px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    border-radius: 0 0 0 10px
  }
  .camera-placeholder {
    position: relative;
    height: $camera-height;
    text-align: center;
    color: #CCCCCC;
    font-size: 24px;
    background: #fff;
    &-wrap {
      position: absolute;
      left: 20px;
      right: 20px;
      top: 20px;
      bottom: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 1PX solid #CCCCCC;
    }
    .iconfont {
      margin-bottom: 10px;
      font-size: 80px;
    }
    .icon-camera {
      color: var(--color-dianwu-primary);
    }
  }

  .member-info {
    padding: 0 20px;
    display: flex;
    align-items: center;
    border: 1PX solid var(--color-dianwu-primary);
    border-radius: 30px;
    background: #e3ebfc;
    .lf {
      padding: 0 20px 0 10px;
      color: #4d84fc;
    }
    .rg {

    }
    .name {
      width: 80px;
      @include text-overflow();
      font-weight: 400;
    }
    .mobile {
      font-weight: 600;
    }
    .cash {
      font-size: 24px;
      color: #111a34;
      margin-right: 40px;
      .cash-value {
        font-size: 32px;
        font-weight: 600;
        color: #111a34;
      }
    }
    .btn-clear {
      width: 50px;
      height: 90px;
      line-height: 90px;
      color: var(--color-dianwu-primary);
      text-align: right;
      border-left: 1PX solid var(--color-dianwu-primary);
      .iconfont {
        font-size: 36px;
      }
    }
  }

  .block-promation {
    padding: 20px 30px;
    background-color: #fff;
    margin-top: 24px;
    .promation-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      &:not(:last-child) {
        margin-bottom: 20px;
      }
      .tag {
        font-size: 24px;
        color: #ff5257;
        text-shadow: 0px 2px 4px #e2e4ea;
        border-radius: 4px;
        border: 1px solid #ff5257;
        padding: 2px 4px;
        margin-right: 16px;
      }
      .txt {
        color: #111a34;
      }
      .btn-add {
        color: #111a34;
        .icon-qianwang-01 {
          font-size: 26px;
        }
      }
    }
  }

  .g-button {
    position: relative;
    &__first {
      width: 58%;
      padding-right: 8%;
      color: var(--color-dianwu-primary);
      height: 80px;
      /* prettier-ignore */
      border: 1PX solid var(--color-dianwu-primary);
      top: 0;
      left: 0;
      bottom: 0;
      border-radius: 40px;
      color: var(--color-dianwu-primary);
      text-align: center;
      line-height: 80px;
      box-sizing: border-box;
    }

    &__second {
      width: 58%;
      /* prettier-ignore */
      border: 1PX solid var(--color-dianwu-primary);
      background: var(--color-dianwu-primary);
      height: 80px;
      border-radius: 40px;
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      color: #fff;
      text-align: center;
      line-height: 80px;
      box-sizing: border-box;
    }
  }
  .block-goods {
    // margin-top: 24px;
    padding: 0 20px;
    .item-wrap {
      background-color: #fff;
      &:not(:last-child) {
        /* prettier-ignore */
        border-bottom: 1PX solid #ededed;
        margin-bottom: 20px;
        // padding-bottom: 20px;
      }
    }
    .price-wrap {
      display: flex;
      align-items: center;
      margin-right: 20px;
    }
    .ft-info {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
    }
    .price-list {
    }
    .at-input-number {
      margin-bottom: 10px;
      /* prettier-ignore */
      border: 1PX solid #999;
      border-radius: 0;
      &__btn {
        color: #222;
        padding: 0;
        width: 40px;
        display: block;
        height: 40px;
        box-sizing: border-box;
        line-height: 44px;
        .at-icon-subtract {
          transform: scale(0.8);
        }
        .at-icon-add {
          transform: scale(0.8);
        }
      }
      &__input {
        /* prettier-ignore */
        border-left: 1PX solid #999;
        border-right: 1px solid #999;
        width: 60px;
        height: 32px;
        line-height: 32px;
        font-size: 24px;
      }
    }
  }
  .item-wrap {
    display: flex;
    .item-caption {
      padding: 20px;
      display: flex;
      // flex: 1;
      width: calc(100% - 123px);
      .item-hd {
        margin-right: 20px;
        .btn-delete {
          width: 110px;
          height: 46px;
          background: #f5f6f9;
          border-radius: 23px;
          text-align: center;
          margin-top: 10px;
          line-height: 46px;
        }
        .icon-trashCan {
          font-size: 32px;
          color: #666f83;
        }
      }
      .item-bd {
        .title {
          font-weight: 600;
          @include text-overflow();
          max-width: 340px;
          padding-bottom: 10px;
        }
        .sku {
          background: #efefef;
          padding: 4px 20px;
          display: inline-block;
          font-size: 24px;
          color: #666;
          border-radius: 6px;
        }
        .price-list {
          display: flex;
          flex-wrap: wrap;
          margin: 10px 0;
          width: 380px;
        }
      }
    }
    .item-option {
      display: flex;
      flex-direction: column;
      width: 123px;
      border-left: 1PX solid #dadada;
      &-count {
        display: flex;
        height: 60px;
        border-bottom: 1PX solid #dadada;
        .count-option {
          flex: 1;
          line-height: 60px;
          text-align: center;
          font-size: 32px;
          &:first-child {
            border-right: 1PX solid #dadada;
          }
        }
      }
      &-input {
        flex: 1;
        background: #efefef;
        .at-input {
          height: 100%;
          background: none;
          margin: 0;
          box-sizing: border-box;
          text-align: center;
          font-size: 28px;
          input {
            padding-right: 0;
          }
          &:after {
            border-color: transparent;
          }
        }
      }
      &-del {
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 30px;
        border-top: 1PX solid #dadada;
      }
    }
  }
  &.ipx {
    .footer-wrap {
      bottom: $tabbar-ipx-height;
    }
  }
  .footer-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: $tabbar-height;
    height: $footer-height;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    z-index: 999;
    .total-info {
      line-height: 32px;
    }
    .real-mount {
      margin-bottom: 6px;
      font-weight: 600;
      font-size: 24px;
    }
    .txt {
      color: #666;
      font-size: 24px;
    }
    .g-button {
      width: 400px;
    }
  }

  // .block-gift {
  //   padding: 20px;
  //   .gift-tag {
  //     margin-left: 10px;
  //     margin-bottom: 10px;
  //     width: 110px;
  //     height: 40px;
  //     background: #ff5257;
  //     border-radius: 4px;
  //     color: #fff;
  //     text-align: center;
  //     margin-right: 10px;
  //   }
  // }
  .gift-block {
    .gift-item {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
    }
    .gift-tag {
      background: #ff5257;
      margin-right: 10px;
      color: #fff;
      font-size: 26px;
      padding: 0 4px;
    }
    .gift-sku {
      color: #828282;
      font-size: 26px;
    }
  }
  &.ipx {
    .total-bar {
      bottom: $footer-height + $tabbar-ipx-height;
    }
  }
  .total-bar {
    height: 66px;
    background: #e2ebfd;
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    position: fixed;
    bottom: $footer-height + $tabbar-height;
    left: 0;
    right: 0;
    z-index: 1000;
    .lf {
      color: #4980ff;
      display: flex;
      align-items: center;
    }
    .rg {
      color: #4980ff;
      font-size: 24px;
    }
    .icon-qianwang-01 {
      font-size: 26px;
    }
    .total-mount {
      margin-right: 20px;
      font-size: 24px;
    }
    .discount-mount {
      font-size: 24px;
    }
    .sp-price__symbol,
    .sp-price__int,
    .sp-price__decimal {
      color: #4980ff;
    }
  }

  .discount-detail {
    .sp-cell {
      padding: 0;
      margin-bottom: 20px;
      &__bd {
        text-align: right;
      }
    }
  }

  .layout-search-result {
    .sp-float-layout-hd {
      text-align: left;
      .label {
        color: #666f83;
      }
      .keywords {
        color: #111a34;
      }
    }
    .sp-float-layout-bd {
      // padding: 0;
    }
    .at-tabs__header {
    }
    .at-tabs__item {
      padding: 10px 12px;
      background: #f9fafb;
      /* prettier-ignore */
      border: 1PX solid #858B9C;
      &--active {
        font-weight: 600;
        color: #4980ff;
        border-color: #4980ff;
        background-color: #ecf3ff;
        position: relative;
        overflow: initial;
        &:after {
          content: ' ';
          width: 20px;
          height: 20px;
          /* prettier-ignore */
          border-right: 1PX solid #4980FF;
          /* prettier-ignore */
          border-bottom: 1PX solid #4980FF;
          position: absolute;
          bottom: -12px;
          transform: rotate(45deg);
          background-color: #ecf3ff;
          left: 50%;
          transform: translateX(-50%) rotate(45deg);
        }
      }
      &-underline {
        display: none;
      }
    }
  }

  .tab-scroll-list {
    height: 800px;
    margin: 30px 0;
    .goods-item-wrap {
      &:not(:last-child) {
        margin-bottom: 30px;
      }
      .at-button {
        display: inline-block;
        min-width: 120px;
        margin: 0;
        height: 56px;
        line-height: 54px;
        &.active {
          background-color: var(--color-dianwu-primary);
          color: #fff;
        }
        .icon-plus {
          font-size: 40px;
          color: #fff;
        }
      }
      .btn-add-cart {
        padding: 6px 20px;
        height: auto;
        box-sizing: content-box;
        line-height: normal;
        border-color: #4d84fc;
        .at-button__text {
          color: #4d84fc;
        }
      }
    }
    .user-item {
      display: flex;
      .sp-image {
        margin-right: 20px;
      }
      .sp-image-img {
        border-radius: 55px;
      }
      .user-item-bd {
        flex: 1;
        .name {
          color: #111a34;
          font-weight: 600;
        }
        .mobile {
          color: #666f83;
        }
        .vip {
          color: #666f83;
          font-size: 24px;
        }
      }
      .at-button {
        display: inline-block;
        margin: 40px 0 0 0;
        height: 56px;
        line-height: 54px;
        padding: 0 20px;
        background-color: var(--color-dianwu-primary);
        color: #fff;
        box-sizing: content;
      }
      &:not(:last-child) {
        margin-bottom: 20px;
      }
    }
  }

  .create-user {
    width: 600px;
    height: 640px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 130px 40px 0;
    box-sizing: border-box;
    &-hd {
      text-align: center;
      .title {
        font-weight: 500;
        color: #724120;
        font-size: 48px;
      }
      .sub-title {
        font-size: 24px;
        font-weight: 300;
        color: #96603d;
      }
    }

    &-bd {
      margin-top: 36px;
      .form-field {
        height: 90px;
        background: #ffedcb;
        border-radius: 8px;
        border: 1px solid #cdab8e;
        display: flex;
        align-items: center;
        margin-bottom: 30px;
        .at-input {
          background-color: transparent;
          color: #724120;
          flex: 1;
          margin-bottom: 0;
          &:after {
            border-color: transparent;
          }
          &__input {
            font-size: 32px;
            font-weight: 500;
            color: #724120;
            padding-left: 24px;
          }
        }
        .send-code {
          width: 190px;
          height: 70px;
          background: #cdab8e;
          color: #724120;
          margin-right: 10px;
          text-align: center;
          line-height: 70px;
        }
      }
    }

    &-ft {
      .btn-submit {
        width: 400px;
        height: 80px;
        background: linear-gradient(270deg, #b78749 0%, #794d1b 100%);
        border-radius: 40px;
        text-align: center;
        font-size: 32px;
        font-weight: 500;
        color: #ffffff;
        border-radius: 40px;
        line-height: 80px;
        margin: 20px auto;
      }
    }
  }

  .search-user {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    &-hd {
      display: flex;
      justify-content: space-between;
      padding: 20px 30px;
      .title {
        padding-top: 20px;
        font-size: 32px;
        color: #666;
      }
      .scan-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 24px;
        color: var(--color-dianwu-primary);
      }
      .icon-saoma {
        font-size: 90px;
      }
    }
    &-bd {
      padding: 30px 30px;
      .form-field {
        height: 80px;
        background: #f5f5f5;
        border-radius: 8px;
        /* prettier-ignore */
        border: 1PX solid #d7d7d7;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        .at-input {
          background-color: transparent;
          color: #333;
          flex: 1;
          margin-bottom: 0;
          &:after {
            border-color: transparent;
          }
          &__input {
            font-size: 28px;
            color: #333;
            padding-left: 24px;
          }
        }
      }
      .search-result {
        padding: 10px 20px;
        border: 1PX solid #efefef;
        border-radius: 6px;
        color: var(--color-dianwu-primary);
        font-size: 24px;
      }
    }
    &-ft {
      display: flex;
      justify-content: flex-end;
      padding: 20px;
      .btn-cancel {
        height: 78px;
        border-radius: 40px;
        text-align: center;
        font-size: 32px;
        font-weight: 500;
        /* prettier-ignore */
        border: 1PX solid #cdcdcd;
        color: #333;
        border-radius: 40px;
        line-height: 78px;
        padding: 0 40px;

      }
      .btn-confirm {
        height: 80px;
        font-weight: 500;
        /* prettier-ignore */
        border: 1PX solid var(--color-dianwu-primary);
        background: var(--color-dianwu-primary);
        color: #ffffff;
        border-radius: 40px;
        line-height: 80px;
        padding: 0 40px;
        margin: 0 0 0 30px;
      }
    }
  }

  .at-curtain--closed {
    display: none;
  }
}
